package com.neusoft.yuejian26.yuejian_26.Service;

import com.neusoft.yuejian26.yuejian_26.Bean.MySharebean;
import com.neusoft.yuejian26.yuejian_26.Bean.ShareSimpbean;
import com.neusoft.yuejian26.yuejian_26.Bean.Result;

import java.util.List;

import okhttp3.MultipartBody;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.Part;
import retrofit2.http.Query;

/**
 * Created by Administrator on 2017/10/27 0027.
 */

public interface PostService {
    @Multipart
    @POST("Post/ppost")
    Call<Result> doingPost(
            @Query("uid") String uid,
            @Query("ptext") String ptext,
            @Part MultipartBody.Part file
    );

    @GET("Post/mypostlist")
    Call<List<MySharebean>> getMyShareList(
            @Query("uid") String uid,
            @Query("page") String page
    );

    @GET("Post/postsimp")
    Call<ShareSimpbean> getShareSimp(
            @Query("pid") String pid
    );

}
